/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="HORARIOSQT")
public class HorariosQTProteu implements Serializable{

    @Id
    @Column(name="HQT_IN_CODIGO")
    private Integer hqtInCodigo;
    @Column(name="HQT_ST_DESCRICAO")
    private String hqtStDescricao;
    @Lob
    @Column(name="HQT_ST_DESCRICAO_DETALHES")
    private String hqtStDescricaoDetalhes;//blob
    @Column(name="HQT_IN_VEZES_DIA")
    private Integer hqtInVezesDia;
    @Column(name="HQT_ST_CONTROLE_HORARIOS")
    private String hqtStControleHorarios;
    @Column(name="HQT_CH_HORARIOS")
    private String hqtChHorarios;
    @Column(name="USU_IN_CODIGO")
    private Integer usuInCodigo;
    @Column(name="HQT_DT_ALTERACAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date hqtDtAlteracao;


    public String getHqtChHorarios() {
        return hqtChHorarios;
    }

    public void setHqtChHorarios(String hqtChHorarios) {
        this.hqtChHorarios = hqtChHorarios;
    }

    public Date getHqtDtAlteracao() {
        return hqtDtAlteracao;
    }

    public void setHqtDtAlteracao(Date hqtDtAlteracao) {
        this.hqtDtAlteracao = hqtDtAlteracao;
    }

    public Integer getHqtInCodigo() {
        return hqtInCodigo;
    }

    public void setHqtInCodigo(Integer hqtInCodigo) {
        this.hqtInCodigo = hqtInCodigo;
    }

    public Integer getHqtInVezesDia() {
        return hqtInVezesDia;
    }

    public void setHqtInVezesDia(Integer hqtInVezesDia) {
        this.hqtInVezesDia = hqtInVezesDia;
    }

    public String getHqtStControleHorarios() {
        return hqtStControleHorarios;
    }

    public void setHqtStControleHorarios(String hqtStControleHorarios) {
        this.hqtStControleHorarios = hqtStControleHorarios;
    }

    public String getHqtStDescricao() {
        return hqtStDescricao;
    }

    public void setHqtStDescricao(String hqtStDescricao) {
        this.hqtStDescricao = hqtStDescricao;
    }

    public String getHqtStDescricaoDetalhes() {
        return hqtStDescricaoDetalhes;
    }

    public void setHqtStDescricaoDetalhes(String hqtStDescricaoDetalhes) {
        this.hqtStDescricaoDetalhes = hqtStDescricaoDetalhes;
    }

    public Integer getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(Integer usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final HorariosQTProteu other = (HorariosQTProteu) obj;
        if (this.hqtInCodigo != other.hqtInCodigo && (this.hqtInCodigo == null || !this.hqtInCodigo.equals(other.hqtInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 47 * hash + (this.hqtInCodigo != null ? this.hqtInCodigo.hashCode() : 0);
        return hash;
    }



}
